package com.learnyou.server.xingzuo.dao.repository.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.learnyou.server.xingzuo.dao.repository.entity.Help;
import com.learnyou.server.xingzuo.dao.repository.mapper.HelpMapper;
import com.learnyou.server.xingzuo.dao.repository.service.IHelpService;

import java.util.Objects;

@Service
public class HelpServiceImpl extends ServiceImpl<HelpMapper, Help> implements IHelpService {
    @Override
    public String getContent(Integer id) {
        Help help = this.baseMapper.selectById(id);
        return Objects.isNull(help)? null : help.getContent();
    }
}
